<template>
  <u-navbar
    :title="title"
    :autoBack="true"
    :placeholder="true"
    :leftIconSize="hasBack ? '40rpx' : '0'"
    :titleStyle="{
      fontSize: '40rpx',
      fontWeight: 'bold',
      color: 'white',
    }"
    :border="true"
    bgColor="#2e6b97"
    leftIconColor="white"
  >
  </u-navbar>
</template>
<script>
export default {
  name: "Navbar",
  props: {
    title: {
      type: String,
    },
    hasBack: {
      type: Boolean,
    },
  },
};
</script>
